home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 24 / Amiga Format AFCD24 (Feb 1998, Issue 108).iso / -seriously_amiga- / shareware / programming / c / vbcc / machines / m68k / machine.h < prev   
C/C++ Source or Header  |  1998-01-05  |  2KB  |  53 lines

  1. /*  $VER: vbcc (machine.h amiga68k) V0.4    */
  2.  
  3. #include "dt.h"
  4.  
  5. /*  This struct can be used to implement machine-specific           */
  6. /*  addressing-modes.                                               */
  7. struct AddressingMode{
  8.     int basereg;
  9.     long dist;
  10.     int skal;
  11.     int dreg;
  12. };
  13.  
  14. /*  The number of registers of the target machine.                  */
  15. #define MAXR 24
  16.  
  17. /*  Number of commandline-options the code-generator accepts.       */
  18. #define MAXGF 20
  19.  
  20. /*  If this is set to zero vbcc will not generate ICs where the     */
  21. /*  target operand is the same as the 2nd source operand.           */
  22. /*  This can sometimes simplify the code-generator, but usually     */
  23. /*  the code is better if the code-generator allows it.             */
  24. #define USEQ2ASZ 0
  25.  
  26. /*  This specifies the smallest integer type that can be added to a */
  27. /*  pointer.                                                        */
  28. #define MINADDI2P SHORT
  29.  
  30. /*  If the bytes of an integer are ordered most significant byte    */
  31. /*  byte first and then decreasing set BIGENDIAN to 1.              */
  32. #define BIGENDIAN 1
  33.  
  34. /*  If the bytes of an integer are ordered lest significant byte    */
  35. /*  byte first and then increasing set LITTLEENDIAN to 1.           */
  36. #define LITTLEENDIAN 0
  37.  
  38. /*  Note that BIGENDIAN and LITTLEENDIAN are mutually exclusive.    */
  39.  
  40. /*  If switch-statements should be generated as a sequence of       */
  41. /*  SUB,TST,BEQ ICs rather than COMPARE,BEQ ICs set this to 1.      */
  42. /*  This can yield better code on some machines.                    */
  43. #define SWITCHSUBS 1
  44.  
  45. /*  In optimizing compilation certain library memcpy/strcpy-calls   */
  46. /*  with length known at compile-time will be inlined using an      */
  47. /*  ASSIGN-IC if the size is less or equal to INLINEMEMCPY.         */
  48. /*  The type used for the ASSIGN-IC will be UNSIGNED|CHAR.          */
  49. #define INLINEMEMCPY (1<<30)
  50.  
  51.  
  52.  
  53.